package com.zhihuanbao.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhihuanbao.business.mapper.BizEnterprisesMapper;
import com.zhihuanbao.business.domain.BizEnterprises;
import com.zhihuanbao.business.service.IBizEnterprisesService;

/**
 * 企业信息Service业务层处理
 * 
 * @author zhihuanbao
 * @date 2024-06-06
 */
@Service
public class BizEnterprisesServiceImpl implements IBizEnterprisesService 
{
    @Autowired
    private BizEnterprisesMapper bizEnterprisesMapper;

    /**
     * 查询企业信息
     * 
     * @param enterpriseId 企业信息主键
     * @return 企业信息
     */
    @Override
    public BizEnterprises selectBizEnterprisesByEnterpriseId(Long enterpriseId)
    {
        return bizEnterprisesMapper.selectBizEnterprisesByEnterpriseId(enterpriseId);
    }

    /**
     * 查询企业信息列表
     * 
     * @param bizEnterprises 企业信息
     * @return 企业信息
     */
    @Override
    public List<BizEnterprises> selectBizEnterprisesList(BizEnterprises bizEnterprises)
    {
        return bizEnterprisesMapper.selectBizEnterprisesList(bizEnterprises);
    }

    /**
     * 新增企业信息
     * 
     * @param bizEnterprises 企业信息
     * @return 结果
     */
    @Override
    public int insertBizEnterprises(BizEnterprises bizEnterprises)
    {
        return bizEnterprisesMapper.insertBizEnterprises(bizEnterprises);
    }

    /**
     * 修改企业信息
     * 
     * @param bizEnterprises 企业信息
     * @return 结果
     */
    @Override
    public int updateBizEnterprises(BizEnterprises bizEnterprises)
    {
        return bizEnterprisesMapper.updateBizEnterprises(bizEnterprises);
    }

    /**
     * 批量删除企业信息
     * 
     * @param enterpriseIds 需要删除的企业信息主键
     * @return 结果
     */
    @Override
    public int deleteBizEnterprisesByEnterpriseIds(Long[] enterpriseIds)
    {
        return bizEnterprisesMapper.deleteBizEnterprisesByEnterpriseIds(enterpriseIds);
    }

    /**
     * 删除企业信息信息
     * 
     * @param enterpriseId 企业信息主键
     * @return 结果
     */
    @Override
    public int deleteBizEnterprisesByEnterpriseId(Long enterpriseId)
    {
        return bizEnterprisesMapper.deleteBizEnterprisesByEnterpriseId(enterpriseId);
    }
}
